<ul class="layui-nav layui-nav-tree">
  {volist name="menu" id="o"}
  {eq name="$o['pid']" value="0"}
  <li class="layui-nav-item">
    <a class="" href="javascript:;">
      <i class="icon {$o['css']}"></i>
      {$o['title']}
    </a>
    <dl class="layui-nav-child">
      {volist name="$o['children']" id="p"}
      <dd ><a href="{:url($p['name'])}" target="displayarea">{$p['title']}</a></dd>
      {/volist}
      </dl>
  </li>
  {else/}
  <li class="layui-nav-item"><a href="">{$o['title']}</a></li>
  {/eq}
  {/volist}
</ul>
